using Core;
using Core.Interfaces;
using NHibernate;

namespace DataMain
{
  public static class Extensions
  {
    public static ISession GetSession(this object anything)
    {
      return IoC.Container.Resolve<ISessionProvider>().GetSession(false);
    }

  }
}